import request from "@/utils/request";

export function isLike(data) {
  return request({
    url: '/post/postStar/' + data.userId + '/isLike/' + data.postId,
    method: 'get',
    params: data
  })
}

export function insertPostStar(data) {
  return request({
    url: '/post/postStar/insertPostStar',
    method: 'post',
    data
  })
}

export function deletePostStar(data) {
  return request({
    url: '/post/postStar/delete/' + data.postId + '/and/' + data.userId,
    method: 'delete',
    data
  })
}

export function getUserStarIds(data) {
  return request({
    url: '/post/postStar/query/infoByUserId/' + data.userId,
    method: 'get',
    params: data
  })
}
